layui.define(['table', 'productApi'], function (exports) {
    var productApi = layui.productApi;
    var table = layui.table;
    var view = {
        init: function () {
        },
        delBatch: function () {
            var data = Common.getMoreDataFromTable(table, "productTable");
            if (data == null) {
                return;
            }
            Common.openConfirm("确认要删除这些产品管理?", function () {
                var ids = Common.concatBatchId(data, "id");
                productApi.del(ids, function () {
                    Common.info("删除成功");
                    dataReload();
                })
            })
        }
    }
    exports('del', view);

});